package com.adgox.tiantianbiting.home.category;

import com.adgox.tiantianbiting.base.BasePresenter;
import com.adgox.tiantianbiting.base.BaseView;
import com.adgox.tiantianbiting.bean.SubProgramBean;
import com.adgox.tiantianbiting.bean.PageBean;
import com.adgox.tiantianbiting.bean.TopBannerBean;

import java.util.List;

/**
 * Created by tang on 2018/12/26.
 */

public class CategoryContract {
    interface Presenter extends BasePresenter{
        // 栏目编号，开始页数，每页的显示条目数
        void getCategory(int categoryId,int startPage,int maxPage);

        void getBanner(int categoryId);

        void addHistory(String s);
    }

    interface View extends BaseView<Presenter>{
        void onSetData(PageBean<SubProgramBean> pageBean);
        void onGetDataFailed(String msg);

        void onSetBanner(List<TopBannerBean> bannerList);
        void onGetBannerFailed(String msg);
    }
}
